<%--
  Created by IntelliJ IDEA.
  User: 陈林
  Date: 2020/4/14
  Time: 9:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=utf-8" isELIgnored="false" pageEncoding="utf-8"%>
<%@ include file="/webpage/common/include/taglib.jsp"%>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <%@ include file="/webpage/common/include/ltie9.jsp"%>
    <!--<script type="text/javascript" src="/resources/lib/html5shiv.js"></script>-->
    <!--<script type="text/javascript" src="/resources/lib/respond.min.js"></script>-->
    <![endif]-->
    <%--<link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />--%>
    <link rel="stylesheet" type="text/css" href="${ctxStatic}/h-ui.admin/css/H-ui.admin.css" />
    <%--<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />--%>
    <link rel="stylesheet" type="text/css" href="${ctxStatic}/h-ui.admin/skin/default/skin.css" id="skin" />
    <%--<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />--%>
    <%@include file="/webpage/common/include/head.jsp"%>
    <!--[if IE 6]>
    <%@ include file="/webpage/common/include/ltie6.jsp"%>
    <!--<script type="text/javascript" src="/resources/lib/DD_belatedPNG_0.0.8a-min.js" ></script>-->
    <!--<script>DD_belatedPNG.fix('*');</script>-->
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="${ctxLib}/map/location_map.css"  />
    <title>菜单管理</title>
</head>
<body>
<div class="page-container">
    <form action="/checkadd/upd" method="get" class="form form-horizontal" id="form-category-add">
        <input type="hidden" value="${updcheckadd.checkId}" name="checkId"/>
        <div id="tab-category" class="HuiTab">
            <div class="tabBar cl">
                <span>基本设置</span>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-3">
                    <span class="c-red">*</span>
                    地址：</label>
                <div class="formControls col-xs-4 col-sm-3">
                    <input type="text" class="input-text" value="${updcheckadd.addName}" placeholder="输入地址" id="" name="addName">
                </div>
                <div class="col-3">
                </div>
                <label class="form-label col-xs-2">
                    <span class="c-red">*</span>
                    气表编号：</label>
                <div class="formControls col-xs-4 col-sm-4">
                    <input type="text"   class="input-text" value="${updcheckadd.gasId}" placeholder="输入气表编号" name="gasId">
                </div>
                <div class="col-3">
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-3">
                    <span class="c-red">*</span>
                    经纬度：</label>
                <div class="formControls col-xs-4 col-sm-3">
                    <input type="text" id="indexs"   class="input-text" value="${updcheckadd.indexs}" placeholder="输入经纬度[x,y]" name="indexs">
                </div>
                <div class="col-3">
                </div>
                <label class="form-label col-xs-2">
                    <span class="c-red">*</span>
                    位置：</label>
                <div class="formControls col-xs-4 col-sm-4">
                    <select name="checkLocation" class="select">
                        <c:choose>
                            <c:when test="${updcheckadd.checkLocation == null}">
                                <option value="out">--选择--</option>
                                <option value="inner">居民</option>
                                <option value="out">气站</option>
                            </c:when>
                            <c:otherwise>
                                <option value="out">--选择--</option>
                                <c:if test="${updcheckadd.checkLocation == 'out'}">
                                    <option value="inner">居民</option>
                                    <option value="out" selected="selected">气站</option>
                                </c:if>
                                <c:if test="${updcheckadd.checkLocation == 'inner'}">
                                    <option value="inner" selected="selected">居民</option>
                                    <option value="out">气站</option>
                                </c:if>
                            </c:otherwise>
                        </c:choose>

                    </select>
                </div>
                <div class="col-3">
                </div>
            </div>
        </div>
        <div class="row cl">
            <div class="col-9 col-offset-9">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
    <div id="container"></div>
</div>

<!--_footer 作为公共模版分离出去-->
<%@include file="/webpage/common/include/footer.jsp"%>
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="${ctxLib}/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="${ctxLib}/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="${ctxLib}/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=018e595e7262c6f190a4145af8123a49"></script>
<script src="${ctxLib}/map/location_map.js" type="text/javascript"></script>
<script type="text/javascript">

    $(function(){
        $('.skin-minimal input').iCheck({
            checkboxClass: 'icheckbox-blue',
            radioClass: 'iradio-blue',
            increaseArea: '20%'
        });

        $("#tab-category").Huitab({
            index:0
        });
        $("#form-category-add").validate({
            rules:{

            },
            onkeyup:false,
            focusCleanup:true,
            success:"valid",
            submitHandler:function(form){
                $(form).ajaxSubmit();
                var index = parent.layer.getFrameIndex(window.name);
                //parent.$('.btn-refresh').click();
                parent.location.reload(); // 父页面刷新
                parent.layer.close(index);
            }
        });


    });
</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
